<?php include("source/menuright.php")?>
<div class="menuright">
    <div class="listtab">
        <form method="post" action="/search">
        <div class="tt"><?php echo getLang('Search Product')?></div>
        <div class="bg">
            <select class="searchs" name="id" style="display: none;">
                <option value="0">----<?php echo getLang('Group product')?>----</option>
                <?php echo ListOptionProductCat()?>
            </select>
            
            <select class="searchs" name="fr">
                <option>----<?php echo getLang('From Price')?>----</option>
                <?php echo ListPrice()?>
            </select>
            
            <select class="searchs" name="to">
                <option>----<?php echo getLang('To')?>----</option>
                <?php echo ListPrice()?>
            </select>
            <div style="padding-top: 5px;">
                <input class="searchs" name="code" value="<?php echo getLang('code product')?>" onfocus="this.value=''" />
            </div>
            <div><input type="image" src="/images/Btn_Search.gif" class="butsearch" /></div>
        </div>
        <div class="ft"></div>
        </form>
    </div>
    
    <?php
    /*
    if($html->getField(0,'cType')=='dulich')
    {*/
        $cattour    = $html->LoadCategory('dulich');
        $cats       = ListCategoryByParentId($cattour['iId']);
        if(count($cats)>0)
        {
    ?>
        <div class="listtab">
        <div class="tt"><?php echo $cattour['cName']?></div>
        <div class="bg">
        <?php
        foreach($cats as $cat)
        {
            $link   = '/'.$cattour['cUrlString'].'/'.$cat['cUrlString'];
        ?>
        <div class="ll">
            <a href="<?php echo $link?>"><?php echo $cat['cName']?></a>
        </div>
        <?
        }
        ?>
        </div>
        <div class="ft"></div>
    </div>
    <?
        }
        
    //}
    ?>
    
    <div class="listtab">
        <div class="tt"><?php echo getLang('news')?></div>
        <div class="bg">
        <?php
        $catsnews   = ListCatnews();
        $linknewsroot= getUrlCatByType('news');
        foreach($catsnews as $cat)
        {
            $link   = $linknewsroot.'/'.$cat['cUrlString'];
        ?>
        <div class="ll">
            <a href="<?php echo $link?>"><?php echo $cat['cName']?></a>
        </div>
        <?
        }
        ?>
        </div>
        <div class="ft"></div>
    </div>
    
    <?php
    $advs    = ListAdv(4);
    if(count($advs)>0)
    {
    ?>
    <div class="listtab">
        <div class="tt"><?php echo getLang('Advertise')?></div>
        <div class="bg">
        <?php
        foreach($advs as $adv)
        {      
            $link  = GetIntroImg($adv['cImageLink']);
        ?>
        <div class="ll">
            <a href="<?php echo $adv['link']?>">
                <?php echo getAdvType($link)?>
            </a>
        </div>
        <?
        }
        ?>
        </div>
        <div class="ft"></div>
    </div>   
    <?
    }
    ?>
</div>